/*
@author: feng
@date: 2021/7/11 16:59
@Version: 1.0
@last modifined by : 2021/7/11 16:59
@last Modifined time : 2021/7/11 16:59
*/

const presets = [
  ['@babel/preset-env'],
  ['@babel/preset-react'],
  ['@babel/preset-typescript'],
];
const plugins = [
  ['@babel/plugin-transform-runtime', { 'corejs': 3 }],
  // babel-plugin-import  ↓↓↓
  // ["import", { "libraryName": "antd", "style": true }],
  ['@babel/plugin-proposal-decorators', { 'legacy': true }],
  ['@babel/plugin-proposal-class-properties', { 'loose': true }],
  // 显示消除警告
  ['@babel/plugin-proposal-private-methods', { 'loose': true }],
  ['@babel/plugin-proposal-private-property-in-object', { 'loose': true }],
  ['@babel/plugin-syntax-dynamic-import'],
  // ["@babel/eslint-parser"],
];

module.exports = { presets, plugins, compact: true };
